from django.db import models
from django.contrib import admin
from forfood.restaurant.models import Restaurant
from forfood.customer.models import Customer


class Comment(models.Model):
    comment_content = models.CharField(max_length = 200)
    datestamp = models.DateTimeField()
    replied_comment_id = models.IntegerField(default=-1)
    restaurant = models.ForeignKey(Restaurant, blank=True,null=True)
    customer = models.ForeignKey(Customer)
    
    def __unicode__(self):
        return self.comment_content
    
class CommentAdmin(admin.ModelAdmin):
    pass
    
admin.site.register(Comment, CommentAdmin)